// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Engine/DataTable.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "LoadCsvFile.generated.h"



USTRUCT(BlueprintType)
struct FMyStruct
{
	GENERATED_BODY()

		UPROPERTY(EditAnywhere, BlueprintReadWrite)
		TArray<FString> test;
};

USTRUCT(BlueprintType)
struct FMyStructs
{
	GENERATED_BODY()

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	TArray<FMyStruct> test;
};

//形态键名字组成的结构体
USTRUCT(BlueprintType)
struct FMyDeformerNameStructs
{
	GENERATED_BODY()

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	TArray<FName> name;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	TArray<int> data_num;//形态键对应这边动捕数据数组的索引
};
/**
 * 
 */
UCLASS()
class ANIMCSV_API ULoadCsvFile : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()

	UFUNCTION(BlueprintCallable, meta = (DisplayName = "LoadExcel", Keywords = "LoadExcel"), Category = "Custom")
		static TArray<FMyStruct> DataReadExcelFunction(FString name,FString csvdir);

	UFUNCTION(BlueprintCallable, meta = (DisplayName = "GetFaceData", Keywords = "LoadExcel"), Category = "Custom")
	static TArray<FMyStruct> GetFaceData(TArray<FMyStruct> data);
};
